package com.lagou.sqlSession;

import com.lagou.config.BoundSql;

import java.sql.PreparedStatement;
import java.util.List;

public interface StatementHandler {

    <E> List<E> query(PreparedStatement statement) throws  Exception;

    void prepareParams(PreparedStatement preparedStatement, BoundSql boundSql) throws Exception;

    int update(PreparedStatement statement) throws  Exception;
}
